package com.fingard.net;

import java.net.MalformedURLException;
import java.net.URL;

public class URLHelper {
	
	public static URL getUrl(String p_addr) throws MalformedURLException{
		if (p_addr.contains("https://")) {
			return new URL(null,p_addr, new sun.net.www.protocol.https.Handler());
		}
		else{
			return new URL(p_addr);
		}
	}

}
